import request from "@/utils/request";

export function addFence(data) {
  return request({
    url: `/core/fence`,
    method: 'post',
    data
  })
}

export function getFenceList(params) {
  return request({
    url: `/core/fence/list`,
    method: 'get',
    params
  })
}

export function deleteFenceByIds(ids) {
  return request({
    url: `/core/fence`,
    method: 'delete',
    data: ids
  })
}

export function getFenceById(id) {
  return request({
    url: `/core/fence/${id}`,
    method: 'get'
  })
}

export function editFence(data) {
  return request({
    url: `/core/fence`,
    method: 'put',
    data
  })
}
